const allroutes = [
  {
    path: "/home",
    name: "home",
    component: () => import("@/components/homeView.vue"),
    meta: {
      name: "首页",
      hidden: false,
    },
  },
  {
    path: "/wtftest",
    name: "wtftest",
    component: () => import("@/components/wtftest.vue"),
    meta: {
      name: "wtftest",
      hidden: false,
    },
  },
  {
    path: "/news",
    name: "news",
    redirect: "/newslist",
    meta: {
      name: "新闻模块",
      hidden: false,
    },
    children: [
      {
        path: "/newslist",
        name: "newslist",
        meta: {
          name: "新闻列表",
          hidden: false,
        },
        component: () => import("@/components/aView.vue"),
      },
      {
        path: "/newscheck",
        name: "newscheck",
        meta: {
          name: "新闻审核",
          hidden: false,
        },
        component: () => import("@/components/newsCheckView.vue"),
      },
      {
        path: "/newsmanagement",
        name: "newsmanagement",
        meta: {
          name: "新闻详情",
          hidden: true,
        },
        component: () => import("@/components/bView.vue"),
      },
    ],
  },
  {
    path: "/roles",
    name: "roles",
    redirect: "/roleslist",
    meta: {
      name: "权限模块",
      hidden: false,
    },
    children: [
      {
        path: "/roleslist",
        name: "roleslist",
        meta: {
          name: "权限列表",
          hidden: false,
        },
        children: [
          {
            path: "/roleuser",
            name: "roleuser",
            meta: {
              name: "用户权限管理",
              hidden: false,
            },
            component: () => import("@/components/permissionView.vue"),
          },
          {
            path: "/rolelist",
            name: "rolelist",
            meta: {
              name: "角色权限管理",
              hidden: false,
            },
            component: () => import("@/components/rolesView.vue"),
          },
        ],
      },
    ],
  },
  {
    path: "/menuslist",
    name: "menuslist",
    meta: {
      name: "菜单列表",
      hidden: false,
    },
    component: () => import("@/components/menusView.vue"),
  },
  {
    path: "/user",
    name: "user",
    redirect: "/userslist",
    meta: {
      name: "用户模块",
      hidden: false,
    },
    children: [
      {
        path: "/userslist",
        name: "userslist",
        meta: {
          name: "用户列表",
          hidden: false,
        },
        component: () => import("@/components/cView.vue"),
      },
      {
        path: "/usersmanagement",
        name: "usersmanagement",
        meta: {
          name: "用户管理",
          hidden: false,
        },
        component: () => import("@/components/dView.vue"),
      },
    ],
  },
]
export default allroutes
